/*
 * API 配置
 *
 */
import $http from './request_interface'
import { baseURL } from "./env";
export default {
	// TOP5 TOP10
	reportOverview: (params) => $http.post('/report/reportOverview', params),
	//echars数据
	reportTable: (params) => $http.post('/report/reportTable', params),
    // 登录
	peisLogin: (params) => $http.post('/sysUser/peisLogin', params),

	aliyun_upload: baseURL + '/aliyun/upload',

  // 公共
	// 系统管理
	// 权限列表查询
	getquerySysRoleList: (params) => $http.post('/sysRole/querySysRoleList', params),
	// 权限列表删除
	deleteRole: (params) => $http.post('/sysRole/deleteRole', params),
	// 权限个数
	getquerySysMenu: (params) => $http.post('/sysRole/querySysMenu', params),
	// 添加权限
	addinsertSysRole: (params) => $http.post('/sysRole/insertSysRole', params),
	// 权限查看详情
	getqueryRolePermissions: (params) => $http.post('/sysRole/queryRolePermissions', params),
	// 权限修改
	selupdateSysRole: (params) => $http.post('/sysRole/updateSysRole', params),
	addUserRole: (params) => $http.post('/pbPersons/addUserRole', params),// 员工信息列表查询


	//-----------------------------------前台管理  Start------------------------------------------------
	// 体检登记
	getCheckList:(params) => $http.post('/peOrdersMain/getCheckList', params),
	deletePeOrdersMain:(params) => $http.post('/peOrdersMain/deletePeOrdersMain', params),
	getTodayPersonCount:(params) => $http.get('/peOrdersMain/getTodayPersonCount', params),
	insertPeOrdersMain:(params) => $http.post('/peOrdersMain/insertPeOrdersMain', params),
	updatePeOrdersMain:(params) => $http.post('/peOrdersMain/updatePeOrdersMain', params),
	queryItemScanCodeInfo:(params) => $http.post('/peOrdersMain/queryItemScanCodeInfo', params),
	guideOrderPrintSubmit:(params) => $http.post('/peOrdersMain/guideOrderPrintSubmit', params),
	getScanCodePersonCount:(params) => $http.post('/peOrdersMain/getScanCodePersonCount', params),
	updateScanCodeStatus:(params) => $http.post('/peOrdersMain/updateScanCodeStatus', params),
	validNoCheckItem:(params) => $http.post('/peOrdersMain/validNoCheckItem', params),
	updateNoCheckItemStatus:(params) => $http.post('/peOrdersMain/updateNoCheckItemStatus', params),
	receiveFormCheckList:(params) => $http.post('/peOrdersMain/receiveFormCheckList', params),
	deleteOrderItem:(params) => $http.post('/peOrdersMain/deleteOrderItem', params),
	receiveFormReportList:(params) => $http.post('/peOrdersMain/receiveFormReportList', params),
	batchPrintOrderList:(params) => $http.post('/peOrdersMain/batchPrintOrderList', params),
	//-----------------------------------前台管理  End------------------------------------------------

	//-----------------------------------体检预约  Start------------------------------------------------
	// 体检登记-获取体检预约人数
	getCheckupNums: (params) => $http.get('/peOrdersMain/getAppointmentPersonCount', params),
	// 分页获取体检预约列表信息
	getCheckupList: (params) => $http.post('/peOrdersMain/getAppointmentInfoList', params),
	// 更改预约日期以及预约叮嘱
	setCheckupForm: (params) => $http.post('/peOrdersMain/updateAppointmentInfo', params),
	//-----------------------------------体检预约  end--------------------------------------------------


	//-----------------------------------体检中心  Start------------------------------------------------

	// 客户模块管理
	// getPeCustomersList: (params) => $http.post('/peCustomers/getPeCustomersList', params),
	// insertPeCustomers: (params) => $http.post('/peCustomers/insertPeCustomers', params),
	getPeCustomer: (params) => $http.post('/peCustomers/selectOne', params),
	getPeCustomerById: (params) => $http.post('/peCustomers/getPeCustomersById', params),
	getPeCustomerLogs: (params) => $http.post('/peCustomers/getAllPepeOrderList', params),// 查询过往体检记录
	updatePeCustomer: (params) => $http.post('/peCustomers/updatePeCustomers', params),
	// deletePeCustomers: (params) => $http.post('/peCustomers/deletePeCustomers', params),// 通过主键查询单条数据


	// 单位管理
	getEnterpriseList:(params) => $http.post('/peEnterprises/getPeEnterprisesList', params),
	addEnterprise: (params) => $http.post('/peEnterprises/insertPeEnterprises', params),
	importEnterprises: (params) => $http.post('/peEnterprises/importPeEnterprises', params),
	updateEnterprise: (params) => $http.post('/peEnterprises/updatePeEnterprises', params),
	delEnterprise: (params) => $http.post('/peEnterprises/deletePeEnterprises', params),
	getEnterpriseById: (params) => $http.post('/peEnterprises/getPeEnterprisesById', params),
	getEnterpriseContracts: (params) => $http.post('/peEnterprises/getEnterpriseContracts', params),


	//体检报告
	getPeExamReportsList:(params) => $http.post('/peExamReports/getPeExamReportsList', params),
	peExamReportsReCheck:(params) => $http.post('/peExamReports/peExamReportsReCheck', params),
	peExamReportsUnlock:(params) => $http.post('/peExamReports/peExamReportsUnlock', params),
	peExamReportsPrint:(params) => $http.post('/peExamReports/peExamReportsPrint', params),





	//补录
	getPeOrdersMainList:(params) => $http.post('/peOrdersMain/getPeOrdersMainList', params),
	getPeOrdersAllDetails:(params) => $http.post('/peOrdersMain/getPeOrdersAllDetails', params),
	updatePeOrdersAllDetails:(params) => $http.post('/peOrdersMain/updatePeOrdersAllDetails', params),
	queryOverallReviewPeOrdersMain:(params) => $http.post('/peOrdersMain/queryOverallReviewPeOrdersMain', params),


	//初检
	getVerifyPeOrdersMainList:(params) => $http.post('/peOrdersMain/getVerifyPeOrdersMainList', params),
	getVerifyPeOrdersMainCount:(params) => $http.post('/peOrdersMain/getVerifyPeOrdersMainCount', params),
	getVerifyPeOrdersMainDetails:(params) => $http.post('/peOrdersMain/getVerifyPeOrdersMainDetailsNew', params),
	saveVerifyPeOrdersMainDetails:(params) => $http.post('/peOrdersMain/saveVerifyPeOrdersMainDetails', params),

	//复检
	getReviewPeOrdersMainList:(params) => $http.post('/peOrdersMain/getReviewPeOrdersMainList', params),
	getReviewPeOrdersMainCount:(params) => $http.post('/peOrdersMain/getReviewPeOrdersMainCount', params),
	getReviewPeOrdersMainDetails:(params) => $http.post('/peOrdersMain/getReviewPeOrdersMainDetailsNew', params),
	saveReviewPeOrdersMainDetails:(params) => $http.post('/peOrdersMain/saveReviewPeOrdersMainDetails', params),


	getPeOrdersMainById:(params) => $http.post('/peOrdersMain/getPeOrdersMainById', params),
	selectOnePeOrder:(params) => $http.post('/peOrdersMain/selectOne', params),
	getPeOrdersItemList:(params) => $http.post('/peOrdersMain/getPeOrdersItemList', params),

	getOrderStatusReportList:(params) => $http.post('/peOrdersMain/getOrderStatusReportList', params),



	//-----------------------------------体检中心  End------------------------------------------------


	//-----------------------------------科室体检  Start------------------------------------------------


	// 体检记录
	getPeOrdersMainPersonCount:(params) => $http.post('/peExamRecords/getPeOrdersMainPersonCount', params),//分页查询体检记录信息列表人数统计
	getPeExamRecordsCheckList:(params) => $http.post('/peExamRecords/getCheckList', params),//分页查询体检记录信息列表人数统计
	getPeExamRecordDetail:(params) => $http.post('/peExamRecords/getPeOrdersMainPersonDetails', params),//科室体检扫码显示用户体检详情-传ordersId和itemId
	insertPeExamRecord:(params) => $http.post('/peExamRecords/insertPeExamRecords', params),//
	selectPeExamRecord:(params) => $http.post('/peExamRecords/selectOne', params),//
	queryDiagnosticResultOptions:(params) => $http.post('/peExamRecords/queryDiagnosticResultOptions', params),//


	//-----------------------------------科室体检  Start------------------------------------------------


	//-----------------------------------基础功能  Start------------------------------------------------

	// 医院信息列表查询
	getqueryPbHospitalList: (params) => $http.post('/pbHospital/queryPbHospitalList', params),
	// 医院信息添加
	addinsert: (params) => $http.post('/pbHospital/insert', params),
	// 医院信息删除
	deleteById: (params) => $http.post('/pbHospital/deleteById', params),
	// 医院信息修改
	selupdate: (params) => $http.post('/pbHospital/update', params),
	// 医院信息详情信息
	getqueryById: (params) => $http.post('/pbHospital/queryById', params),


	// 体检套餐管理
	readPackageList: (params) => $http.post('/pbPackages/queryPbPackagesList', params),
	addPackage: (params) => $http.post('/pbPackages/insert', params),
	deletePackageById: (params) => $http.post('/pbPackages/delete', params),
	updatePackage: (params) => $http.post('/pbPackages/update', params),
	getPackageById: (params) => $http.post('/pbPackages/queryById', params),
	queryPbPackagesList: (params) => $http.post('/pbPackages/queryPbPackagesList', params),// 查询所有套餐
	queryPackagItemsByPackIds: (params) => $http.post('/pbPackageItems/queryPackagItemsByPackIds', params),// 查询所有套餐
	queryPackagItems: (params) => $http.post('/pbPackageItems/queryPackagItems', params),

	// 部门管理
	departmentList: (params) => $http.post('/department/departmentList', params),
	getListByParentId: (params) => $http.post('/department/getListByParentId', params),

	getDepartItemTree: (params) => $http.post('/department/getDepartItemTreeList', params),
	getDepartTreeList: (params) => $http.post('/department/getDepartTreeList', params),
	getDepartItemContentTree: (params) => $http.post('/department/getDepartItemContentTreeList', params),
	getDepartmentById: (params) => $http.post('/department/getDepartmentById', params),
	insertDepartment: (params) => $http.post('/department/insertDepartment', params),
	updateDepartment: (params) => $http.post('/department/updateDepartment', params),
	updateDepartmentStatus: (params) => $http.post('/department/updateDepartmentStatus', params),


	// 员工信息列表查询
	deletePersonById: (params) => $http.post('/pbPersons/deleteById', params),
	insertPerson: (params) => $http.post('/pbPersons/insert', params),
	queryPerson: (params) => $http.post('/pbPersons/queryById', params),
	updatePerson: (params) => $http.post('/pbPersons/update', params),
	queryPbPersonsList: (params) => $http.post('/pbPersons/queryPbPersonsList', params),// 员工信息列表查询


	// 常见结果库
	queryDiagnosticResult: (params) => $http.post('/diagnosticResultInfo/pageList', params),
	delDiagnosticResult: (params) => $http.post('/diagnosticResultInfo/delete', params),
	insertDiagnosticResult: (params) => $http.post('/diagnosticResultInfo/insert', params),
	updateDiagnosticResult: (params) => $http.post('/diagnosticResultInfo/update', params),


	//建议
	queryResultList: (params) => $http.post('/commonResultInfo/all', params),
	delResult: (params) => $http.post('/commonResultInfo/delete', params),
	insertResult: (params) => $http.post('/commonResultInfo/insert', params),
	queryResultPage: (params) => $http.post('/commonResultInfo/page', params),
	updateResult: (params) => $http.post('/commonResultInfo/update', params),

	//数据字典
	insertDict: (params) => $http.post('/dict/addItem', params),
	delDict: (params) => $http.post('/dict/deleteItem', params),
	getDictsById: (params) => $http.post('/dict/getListByDictId', params),
	updateDict: (params) => $http.post('/dict/updateItem', params),
	searchDictList: (params) => $http.post('/dict/searchList', params),
	dictNavList: (params) => $http.post('/dict/dictList', params),

	//分组
	deleteExamItemsGroup: (params) => $http.post('/pbExamItemsGroup/deleteExamItemsGroup', params),
	insertExamItemsGroup: (params) => $http.post('/pbExamItemsGroup/insertExamItemsGroup', params),
	updateExamItemsGroup: (params) => $http.post('/pbExamItemsGroup/updateExamItemsGroup', params),
	selectExamItemsGroupInfo: (params) => $http.post('/pbExamItemsGroup/selectExamItemsGroupInfo', params),
	selectExamItemsGroupList: (params) => $http.post('/pbExamItemsGroup/selectExamItemsGroupList', params),


	// 合同分组管理
	selectGroupTemplateList: (params) => $http.post('/peContractsGroupTemplate/selectGroupTemplateList', params),
	insertGroupTemplateList: (params) => $http.post('/peContractsGroupTemplate/insertGroupTemplateList', params),
	deleteGroupTemplateList: (params) => $http.post('/peContractsGroupTemplate/deleteGroupTemplateList', params),
	updateGroupTemplateList: (params) => $http.post('/peContractsGroupTemplate/updateGroupTemplateList', params),
	getGroupTemplateList: (params) => $http.post('/peContractsGroupTemplate/getGroupTemplateList', params),
	getGroupTemplateInfo: (params) => $http.post('/peContractsGroupTemplate/getGroupTemplateInfo', params),


	//-----------------------------------基础功能  end------------------------------------------------

	// 体检项目单项
	deleteExamItemContent: (params) => $http.post('/examItemContent/deleteExamItemContent', params),
	examItemContentList: (params) => $http.post('/examItemContent/examItemContentList', params),
	getExamItemContentById: (params) => $http.post('/examItemContent/getExamItemContentById', params),
	insertExamItemContent: (params) => $http.post('/examItemContent/insertExamItemContent', params),

	updateExamItem: (params) => $http.post('/examItem/updateExamItem', params),// 分页查询体检项目
	getExamItemById: (params) => $http.post('/examItem/getExamItemById', params),// 根据ID获取体检项目
	deleteExamItem: (params) => $http.post('/examItem/deleteExamItem', params),// 删除体检项目
	insertExamItem: (params) => $http.post('/examItem/insertExamItem', params),// 添加体检项目



	// 客户管理
	// 客户信息列表查询
	getPeCustomersList: (params) => $http.post('/peCustomers/getPeCustomersList', params),
	// 客户信息详情信息
	getPeCustomersById: (params) => $http.post('/peCustomers/getPeCustomersById', params),
	// 个人登记
	insertPeCustomers: (params) => $http.post('/peCustomers/insertPeCustomers', params),
	// 客户信息删除
	deletePeCustomers: (params) => $http.post('/peCustomers/deletePeCustomers', params),
	// 客户信息修改
	updatePeCustomers: (params) => $http.post('/peCustomers/updatePeCustomers', params),
	// 查询过往体检记录
	getAllPepeOrderList: (params) => $http.post('/peCustomers/getAllPepeOrderList', params),
	// 通过主键查询单条数据
	selectOne: (params) => $http.get('/peCustomers/selectOne', params),


	// 体检项目单项
	// 分页查询体检项目
	examItemList: (params) => $http.post('/examItem/examItemList', params),


	//------------------------------------------合同管理 start-----------------------------------------------------
	// 查询合同列表
	getPeEnterpriseContractsList: (params) => $http.post('/peEnterpriseContracts/getPeEnterpriseContractsList', params),
	// 删除合同
	deletePeEnterpriseContracts: (params) => $http.post('/peEnterpriseContracts/deletePeEnterpriseContracts', params),
	// 更新合同
	updatePeEnterpriseContracts: (params) => $http.post('/peEnterpriseContracts/updatePeEnterpriseContracts', params),
	// 根据id查询合同
	getPeEnterpriseContractsById: (params) => $http.post('/peEnterpriseContracts/getPeEnterpriseContractsById', params),
	// 根据合同id获取详情
	selectContractbyid: (params) => $http.post('/peEnterpriseContracts/selectOne', params),
	// 查询合同信息通过分组id
	getPeEnterpriseContractsListByGroupId: (params) => $http.post('/peEnterpriseContracts/getPeEnterpriseContractsListByGroupId', params),
	// 新增合同
	insertPeEnterpriseContracts: (params) => $http.post('/peEnterpriseContracts/insertPeEnterpriseContracts', params),
	// 合同分组新增接口
	insertPeContractsGroup: (params) => $http.post('/peContractsGroup/insertPeContractsGroup', params),
	//通过主键查询单条分组数据
	contractGroupselect: (params) => $http.get('/peContractsGroup/selectOne', params),
	//根据合同id查询合同下面的分组
	queryGroupList: (params) => $http.post('/peContractsGroup/queryGroupList', params),
	//根据分组id获取已保存的项目明细
	getPeContractsGroupItemById: (params) => $http.post('/peContractsGroup/getPeContractsGroupItemById', params),
	//合同分组修改接口  （用于修改分组信息和添加体检项目设置）
	updatePeContractsGroup: (params) => $http.post('/peContractsGroup/updatePeContractsGroup', params),
	//参检人员名单导入
	importPerson: (params) => $http.post('/peContractsGroup/importPerson', params),
	//删除合同分组
	deletePeContractsGroup: (params) => $http.post('/peContractsGroup/deletePeContractsGroup', params),
	//合同人员分组信息保存（用于给人员设置分组或者修改）
	peContractsGroupPersons: (params) => $http.post('/peContractsGroup/peContractsGroupPersons', params),
	//分组按钮
	insertPeContractsGroupPersons: (params) => $http.post('/peContractsGroup/insertPeContractsGroupPersons', params),
	//删除人员分组信息  实体类只需要传删除的人员分组id
	deletePeContractsGroupPersons: (params) => $http.post('/peContractsGroup/deletePeContractsGroupPersons', params),
	getPersonGroupById: (params) => $http.post('/peContractsGroup/getPersonGroupById', params),
	insertPeContractsGroupTemplate: (params) => $http.post('/peContractsGroup/insertPeContractsGroupTemplate', params),
	updateImmediatelyEffect: (params) => $http.post('/peEnterpriseContracts/updateImmediatelyEffect', params),

	//------------------------------------------合同管理 end-----------------------------------------------------
	// 文件上传
	importFile: (params) => $http.post('/pbFile/importFile', params, 'multipart/form-data'),

	// 集中打印 获取订单关联项目条码
	queryItemScanCodeInfoBatch: (params) => $http.post('/peOrdersMain/queryItemScanCodeInfoBatch', params),
	// 集中打印 获取订单指引单详情
	getPeOrdersAllDetailsBatch: (params) => $http.post('/peOrdersMain/getPeOrdersAllDetailsBatch', params)

}
